package cn.fl.custpay.service;

import java.util.List;
import java.util.Map;

import cmm.mid.core.framework.page.KeyValueVO;
import cn.fl.custpay.condition.CmmRechargeRecordQueryCondition;
import cn.fl.custpay.vo.CmmRechargeRecordVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;

/**
 * @Description: 还款记录 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface ICmmRechargeRecordService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public CmmRechargeRecordVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(CmmRechargeRecordVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(CmmRechargeRecordVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    public List<CmmRechargeRecordVO> searchList(CmmRechargeRecordQueryCondition qc)throws BaseException;

    /**
     * 查询事业部
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchListByOrgTypCd(String sysCd) throws BaseException;

    /**
     * 查询组织机构名称
     * @param currentBuOrgCd
     * @param currentSysCd
     * @return
     * @throws BaseException
     */
    public String searchOrgNm(String currentBuOrgCd, String currentSysCd) throws BaseException;

    /**
     * 信联自动代扣
     * @throws BaseException
     */
    public void autoChargePay() throws BaseException;

    /**
     * 查询支付成功分解失败数据并重新分解
     * @throws BaseException
     */
    public void autoFundDecompose() throws BaseException;
    /**
     *
     *@Description 统一代扣接口查询
     *@Author shijb
     *@Date 2018/7/2 15:31
     *@Param orderId 订单id
     *@return java.lang.String
     **/
    public CmmRechargeRecordVO unifyDeductedQuery(Long orderId)throws BaseException;

    /**
     *
     *@Description 获取数据字典
     *@Author shijb
     *@Date 2018/7/3 15:25
     *@Param [cd_type] 字典类型
     *@return java.util.Map<java.lang.String,java.lang.String>
     **/
    public Map<String,String> getDictionryMap(final String cd_type)throws BaseException;

    /**
     *订单分解
     *@Author hl
     *@Date 2020/6/23 15:25
     * @param orderId
     * @throws BaseException
     */
    public void fundDecompose(Long orderId) throws BaseException;

    /**
     * 企业订单同步
     * @param vo
     * @throws BaseException
     */
    public void paautodecoposeFund(CmmRechargeRecordVO vo) throws BaseException;

    /**
     * 查找渠道名称
     * @param orderid
     * @param s
     * @return
     */
    String queryChl(String orderid, String s) throws BaseException;
}
